﻿using System;
using wojilu.Apps.Qycms.Domain;
using wojilu.Apps.Qycms.Interface;

namespace wojilu.Apps.Qycms.Service
{
    public class LngpackService : ILngpackService
    {
        /// <summary>
        /// 获取语言包
        /// </summary>
        /// <param name="lngs"></param>
        /// <param name="keycode"></param>
        /// <returns></returns>
        public String GetLangStr(String lngs, String keycode)
        {
            Lngpack l = Lngpack.find(" lng=:l and keycode=:k").set("l", lngs).set("k", keycode).first();
            return l != null ? l.langstr : String.Empty;
        }

    }
}
